
num = int(input("请输入一个累加的数字？\n"))
result=0
for i in range((num+1)):
    result=result+i
print("result=",result)